package com.chenfan.mcn.service.impl;

import com.chenfan.mcn.model.DiscountRebate;
import com.chenfan.mcn.dao.DiscountRebateMapper;
import com.chenfan.mcn.service.DiscountRebateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * <p>
 * 平台下单返点优惠 服务实现类
 * </p>
 *
 * @author lizhejin
 * @since 2021-01-07
 */
@Service
public class DiscountRebateServiceImpl extends ServiceImpl<DiscountRebateMapper, DiscountRebate> implements DiscountRebateService {

    @Override
    public BigDecimal getByPlatform(Long discountId, String platformId) {
        return baseMapper.getByPlatform(discountId, platformId);
    }
}
